from tkinter import *
b = int(input())
c = int(input())
k = int(input())
bmax = b + 30 * k
cmax = c + 20 * k
if 0 <= bmax <= 500 and 0 <= cmax <= 500:
    a = Tk()
    a.geometry('500x500')
    a = Canvas(bg = 'white', width = '500', height = '500')
    a.pack(anchor = CENTER, expand = 1)
    a.create_polygon(b, c, b + 10 * k, c, b + 10 * k, c + 10 * k, \
        b + 20 * k, c + 10 * k, b + 20 * k, c, b + 30 * k, c, \
        b + 30 * k, c + 20 * k, b, c + 20 * k, b, c, \
        fill = 'blue', outline = 'blue')
    a.mainloop()
else:
    print('Размер фигуры превышает максимальный размер поля')
